package banking8.domain;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class Bank {
	private List<Customer> customers;

	public Bank() {
		customers = new ArrayList<Customer>();
	}

	private static Bank bank = new Bank();

	public static Bank getBanking(){
		return bank;
	}

	public void addCustomer(String f,String l){
		Customer customer = new Customer(f, l);
		customers.add(customer);
	}

	public int getNumOfCustomers(){
		return customers.size();
	}

	public Customer getCustomer(int index){
		return customers.get(index);
	}

	public Iterator<Customer> getCustomers(){
		return customers.iterator();
	}
}
